﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IMTApp
{
    /// <summary>
    /// Author: Elliott Perry 01/09/2011
    /// 
    /// Stores the XML Node data for referencing when constructing the message.
    /// </summary>
    public class MessageData
    {

        public string SenderIdentification { get; set; }
        public string AuthenticationToken { get; set; }
        public string Operation { get; set; }
        public string SourceEnvironment { get; set; }
        public string BrokerID { get; set; }
        public string BrokerContactName { get; set; }
        public string BrokerContactTelephone { get; set; }
        public string BrokerContactEmail { get; set; }
        public string InsurerReinsurerName { get; set; }
        public string UMR { get; set; }
        public string Narrative { get; set; }
        public string MasterType { get; set; }
        public string ClassOfBusiness { get; set; }
        public string CoverType { get; set; }
        public string BrokerEndorsementReference { get; set; }
        public string BrokerEndorsementName { get; set; }
        public string AgreementPractice { get; set; }
        public string VersionNumber { get; set; }
        public string[,] PName { get; set; }//holds the list of Underwriter info (i.e. name, duns, etc)
        public string[,] DocInfo { get; set; }//holds the list of Documnets


       
        public int NumberOfDocuments{ get; set; }
        
        
        
        /// <summary>
        /// Constructor for message data
        /// </summary>
        public MessageData()
        {
            

        }

        /// <summary>
        /// Returns the number of participants (i.e. Markets)
        /// </summary>
        /// <returns></returns>
        public int getNumberOfMarkets()
        {
            return PName.GetLength(0);
        }




        /*
        /// <summary>
        /// Returns the number of documents 
        /// </summary>
        /// <returns></returns
        public int getNumberOfDocs()
        {
            return DocInfo.GetLength(0);
        }
        */

       
    }
}
